<?php
/**
 * 使用predis作为缓存
 */
namespace redis;
use Predis\Client;
use think\Config;
use think\cache\driver\Redis;
class Cache extends Redis
{
    function __construct(){
        $config=Config::get('redis');
        $this->handler=new Client($config['cache']);
    }

    function rm($name){
        $this->handler->del($name);
    }
}
